package org.tc.client.entity;

import org.springframework.format.annotation.DateTimeFormat;
import org.tc.product.entity.Commoditys;
import org.tc.product.entity.Pictures;

import java.util.Date;

public class Shoppingcar {
    private Integer id;

    private Integer storeid;

    private Integer userid;

    private Integer commodityid;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createtime;

    private Integer number;

    private Integer pId;

    private double saleprice;

    private String name;

    private Integer state;

    private Commoditys com;

    private Pictures pic;

    public Pictures getPic() {
        return pic;
    }

    private String brand;

    private String stock;

    public String getStock() {
        return stock;
    }

    public void setStock(String stock) {
        this.stock = stock;
    }
    public void setPic(Pictures pic) {
        this.pic = pic;
    }

    public String getBrand() {
        return brand;
    }
    public Integer getState() {
        return state;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }
    public void setState(Integer state) {
        this.state = state;
    }

    public Commoditys getCom() {
        return com;
    }

    public void setCom(Commoditys com) {
        this.com = com;
    }

    public Integer getpId() {
        return pId;
    }

    public void setpId(Integer pId) {
        this.pId = pId;
    }

    public double getSaleprice() {
        return saleprice;
    }

    public void setSaleprice(double saleprice) {
        this.saleprice = saleprice;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getStoreid() {
        return storeid;
    }

    public void setStoreid(Integer storeid) {
        this.storeid = storeid;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Integer getCommodityid() {
        return commodityid;
    }

    public void setCommodityid(Integer commodityid) {
        this.commodityid = commodityid;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }
}